﻿namespace h80
{
    public class Solution {
        public int[][] Transpose(int[][] matrix) {
            var res = new int[matrix[0].Length][];
            for (int i = 0; i < matrix[0].Length; i++)
            {
                res[i] = new int[matrix.Length];
                for (int j = 0; j < matrix.Length; j++)
                {
                    res[i][j] = matrix[j][i];
                }
            }
            return res;
        }
    }

}